#!/bin/sh
max=$(cat /sys/class/backlight/intel_backlight/max_brightness)
cur=$(cat /sys/class/backlight/intel_backlight/brightness)
echo $(($cur*100/$max))